package com.shop.exception;

/**
 * @author XCH
 * @date 2025/5/19
 */
public class GlobalException extends RuntimeException {

    private Integer errorCode;

    public GlobalException(Integer errorCode, String message) {
        super(message);
        this.errorCode = errorCode;
    }

    public Integer getErrorCode() {
        return errorCode;
    }
}